/*
 * =====================================================================================
 *
 *       Filename:  LM.h
 *
 *    Description:  
 *
 *        Version:  1.0
 *        Created:  2015年03月31日 12时47分39秒
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  LiuYi (), swliuyi@gmail.com
 *   Organization:  
 *
 * =====================================================================================
 */
#ifndef LM_H
#define LM_H

#include <string>
#include <vector>
#include <algorithm>
#include <iostream>
#include <string.h>
//#include "lmsridll.h" // windows
#include "SriLM.h" // linux
#include <string>

using namespace std;

class LM
{
public:
    LM(string path, int maxGramNum);
    virtual ~LM();
    virtual double ComputeLMScore(string sentence, int gramNum) = 0; 
protected:
    int m_maxGramNum;
    void *m_pLM;
};

#endif
